package myFile;

import java.io.File;

/**
 * @author gao
 * @date 2025/8/10 15:32
 */

public class Demo4 {
    public static void main(String[] args) {
        File file = new File("./test");
        file.canRead();//判断文件是否可读
        file.canWrite();//判断文件是否可写
    }
}